//
//  MyMusicTableViewCell.m
//  CatMusic
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MyMusicTableViewCell.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height


@implementation MyMusicTableViewCell

- (void)dealloc
{
    [_landLabel release];
    [_songLabel release];
    [_listenLabel release];
    [_myLoveLabel release];
    [_myView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myView = [[UIView alloc]init];
        [self.contentView addSubview:self.myView];
        [self.myView setBackgroundColor:[UIColor yellowColor]];
        
        self.landLabel = [[UILabel alloc]init];
        [self.myView addSubview:self.landLabel];
        
        self.songLabel = [[UILabel alloc]init];
        [self.myView addSubview:self.songLabel];
        
        self.listenLabel = [[UILabel alloc]init];
        [self.myView addSubview:self.listenLabel];
        
        self.myLoveLabel = [[UILabel alloc]init];
        [self.myView addSubview:self.myLoveLabel];
        
        
        
        [_myView release];
        [_landLabel release];
        [_songLabel release];
        [_listenLabel release];
        [_myLoveLabel release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myView.frame = CGRectMake(0, 0, WIDTH, HEIGHT);
    
    self.landLabel.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 60);
    self.songLabel.frame = CGRectMake(10, 140, WIDTH - 20, 60);
    self.listenLabel.frame = CGRectMake(10, 220, WIDTH -20, 60);
    self.myLoveLabel.frame = CGRectMake(10, 300, WIDTH - 20, 60);
    
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
